jQuery Timer
View Source
- Stopwatch (counts ups)
00:00:00
- Countdown Timer
01:00:00
- Slideshow (preserves time remaining when paused)
Example 4 - The Basics (just a suped-up version of setTimeout)
timer has been executed 0 times.
var count = 0;
var timer = $.timer(function() {
$('#counter').html(++count);
});
timer.set({ time : 1000, autostart : true });